package com.landscope.issue.mapper;

import com.landscope.issue.controller.api.dto.StaListDataDto;
import com.landscope.issue.controller.api.dto.StaListDto;
import com.landscope.issue.controller.wx.dto.AppletStationListDto;
import com.landscope.issue.controller.wx.dto.AppletStationViewDto;
import com.landscope.issue.entity.Stainfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StainfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Stainfo record);

    int insertSelective(Stainfo record);

    Stainfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Stainfo record);

    int updateByPrimaryKey(Stainfo record);

    List<StaListDto> findByCode(@Param("code") String code);
    List<StaListDataDto> findDataListByCode(@Param("code") String code);
    List<AppletStationListDto.AppletStationListItem> findAppletDataListByCode(@Param("code") String code);
    AppletStationViewDto findAppletDataListById(@Param("id") Integer id);
    Integer findExceptionNumByCode(@Param("code") String code);
}